import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { Row, Col } from 'antd';
import FormLogin from '../../components/formLogin';
import Header from '../../components/header';
class _Login extends React.Component{
    constructor(props){
        super(props);
        this.state ={
            hasLogin: false
        };
    }
    static contextTypes = {
        router: React.PropTypes.object
    };
    render(){
        return(
            <div id="login">
                <Row>
                    <Col xs={{span:22,offset:1}}
                         sm={{span:18,offset:3}}
                         md={{span:12,offset:12}}
                         lg={{span:6,offset:16}}
                         style={{
                            marginTop:'88px',
                            padding:'0 0 20px',
                            backgroundColor:'#fff'
                         }}>
                        <FormLogin dispatch={this.props.dispatch}  _r = {this.context.router} />
                    </Col>
                </Row>
            </div>
        )
    }
}
function mapStateToProps(){
    return {}
}
const Login = connect(mapStateToProps)(_Login);
export default  Login
